//页面加载完毕
window.onload=function(){
    getOrderCount();
}

//获取各订单数
function getOrderCount(){
    $uId=1;
    $.post(getCountUrl,{UserId:$uId},
        function(response){
            var temp=$('.ui-tab-nav').find('li');
            temp[0].innerHTML=response[0]+" 待付款";
            temp[1].innerHTML=response[1]+" 待发货";
            temp[2].innerHTML=response[2]+" 已发货";
            temp[3].innerHTML=response[3]+" 已完成";
            //console.log(response);
        },'json');
}